package com.ansion.basedb.dao.helper;

import com.ansion.basedb.database.sql.ColumnType;

import java.util.Objects;

/**
 * created by zhaoyuntao
 * on 15/03/2022
 * description:
 */
public class ColumnNameBean {
    @ColumnType
    public int type;
    public String name;
    public boolean isPrimaryKey;
    public String typeString;
    public boolean notNull;
//    public boolean unique;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ColumnNameBean)) return false;
        ColumnNameBean that = (ColumnNameBean) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
